<?php echo $this->Html->script('table_dynamic',FALSE);?>

<div class="row-fluid">
    <div class="box paint_hover color_18">
        <div class="title">
            <h4> <span>Danh Sách Môn Học<small></small></span> </h4>
        </div>
        <!-- End .title -->

        <div class="content top">
            <table id="datatable_example" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
                <thead>
                <tr>
                    <th class="">Môn Học</th>
                    <th class="to_hide_phone">Bộ Môn</th>
                    <th class="to_hide_phone ue no_sort">Ngày Tạo</th>
                    <th class="ms no_sort ">Hành Động</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($monhoc as $value) { ?>
                <tr>
                    <td class="to_hide_phone"><?php echo $value['Monhoc']['monhoc']; ?></td>
                    <td class="to_hide_phone"><?php
                        $bomon='';
                         foreach($value['Bomon'] as $value2) $bomon.=$value2['tenbomon'].'</br>';
                         echo $bomon;
                    ?></td>
                    <td><?php echo $value['Monhoc']['create_date'];?></td>
                    <td class="ms"><a class="btn btn-small" rel="tooltip" data-placement="top" data-original-title="Xem Chi Tiet"><i class="gicon-eye-open"></i></a> </td>
                </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
        <!-- End .content -->

    </div>
</div>